package leetcode.code0318;

import leetcode.IDebug;
import leetcode.helper.HelpDebug;

public abstract class Solution318 implements IDebug {

	public abstract int maxProduct(String[] words);

	@Override
	public void debug1() {
		int r = this.maxProduct(HelpDebug.str2array2("[\"abcw\",\"baz\",\"foo\",\"bar\",\"xtfn\",\"abcdef\"]"));
		int e = 16;
		HelpDebug.compare(e, r);
	}

	@Override
	public void debug2() {
		int r = this.maxProduct(HelpDebug.str2array2("[\"a\",\"ab\",\"abc\",\"d\",\"cd\",\"bcd\",\"abcd\"]"));
		int e = 4;
		HelpDebug.compare(e, r);
	}

	@Override
	public void debug3() {
		int r = this.maxProduct(HelpDebug.str2array2("[\"a\",\"aa\",\"aaa\",\"aaaa\"]"));
		int e = 0;
		HelpDebug.compare(e, r);
	}

	@Override
	public void debug4() {
		// TODO Auto-generated method stub

	}

}
